<%--
  User: jay.zhoujingjie
  Date: 14-1-16
  Time: 上午10:05
--%>
<%@page import="org.apache.shiro.SecurityUtils, org.apache.shiro.subject.Subject" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //此页面用来注销session或者跳转登录页面

    //设置session失效    
    Subject currentUser = SecurityUtils.getSubject();
    currentUser.logout();

    //用到iframe，所有需要用到.top.location.....
    out.print("<script>window.top.location.href=location.path+'page/login/login.jsp';</script>");
%>
